package eip.chapter4.invalidmessage;

import java.io.Serializable;

/**
 * Represents a simple hotel
 * 
 * @author nl24167
 *
 */
public class Hotel implements Serializable {
	
	/** Generated serializable id */
	private static final long serialVersionUID = 2949209756126703326L;
	
	private String name;
	private String location;
	private String city;
	private String country;
	private String street;
	private int number;
	private String phone;
	
	public Hotel() {
	}
	
	public Hotel(String name, String location, String city, String country, String street, int number, String phone) {
		super();
		this.name = name;
		this.location = location;
		this.city = city;
		this.country = country;
		this.street = street;
		this.number = number;
		this.phone = phone;
	}

	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	
	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
	    final String TAB = "    ";
	    
	    String retValue = "";
	    
	    retValue = "Hotel ( "
	        + super.toString() + TAB
	        + "name = " + this.name + TAB
	        + "location = " + this.location + TAB
	        + "city = " + this.city + TAB
	        + "country = " + this.country + TAB
	        + "street = " + this.street + TAB
	        + "number = " + this.number + TAB
	        + "phone = " + this.phone + TAB
	        + " )";
	    
	    return retValue;
	}
	
	
}
